package com.quintilis31.home.core.expenses.service.impl;

import com.quintilis31.home.common.repository.expense.DailyExpense;
import com.quintilis31.home.core.expenses.repository.IExpenseDAO;
import com.quintilis31.home.persistence.type.impl.sql.jpa.jpaimpl.PersistenceFactory;

/**
 * Created by IntelliJ IDEA.
 * User: Jothi
 * Date: Aug 3, 2010
 * Time: 7:31:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class ExpenseServiceImpl {

    public DailyExpense createNewExpense(final DailyExpense expense) {
        final IExpenseDAO expenseDAO = PersistenceFactory.getExpenseDAO();
        expenseDAO.save(expense);
        return expense;
    }
}
